package com.example.gty.mapper;

import com.example.gty.entity.Teacher;
import com.example.gty.entity.TeacherVo;
import com.example.gty.general.GeneralMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeacherMapper extends GeneralMapper<Teacher> {

    //查询所有老师基本信息以及授课
    List<TeacherVo> selectTeacher();

    //用户表中添加老师信息
    int addTeacherInUser( Teacher teacher,String email);
    //关键字查询老师信息
    List<TeacherVo> selectTeaKey(String key);
}